<%@ page language="java" import="com.gxuwz.medical.domain.recordfree.*" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">
<title>慢性病报销情况列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">慢病报销情况列表</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>搜索：</li>
					<li><input type="text" placeholder="请输入农合证号" name="keywords"
						class="input"
						style="width:250px; line-height:17px;display:inline-block" /> 
						<button class="button border-main icon-search" type="submit"> 搜索</button></li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr><th >序号</th>
				    <th>农合证号</th>
					<th>报销总金额</th>
					<!-- <th>操作</th> -->
				</tr>
                 <%
					String pageNo = request.getParameter("pageNo");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					RecordfreeDao dao = new RecordfreeDao();
					String sql = "select * from t_recordfree where 1=1 ";
				    Object[] params = {};
					Page pageBean = dao.queryOjectsByPage(sql, params, p,
					                Constant.ROW);
					
				%>
				<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {

						Recordfree  model= (Recordfree) pageBean.getDatas().get(i);
						
				%>
				<tr> 
				 <td><%=(i+1) %></td> 
				 <td ><%=model.getPerscode()%></td>
					<td><%=model.getFreetotal()%></td>
					
					<%-- <td><div class="button-group">
							<a class="button border-main"
								href="<%=path%>/system/ChronicInfoServlet?m=givemoney&id=<%=model.getId()%>"><span
								class="icon-edit"></span>审核</a> <a class="button border-red"
								href="<%=path%>/system/ChronicInfoServlet?m=delreduct&id=<%=model.getId()%>"><span
								class="icon-trash-o"></span> 删除</a>
						</div></td> --%>
				</tr> 
				
				<%
				}
				%>  
			</table>  
 <div class="pagelist">
				<%
					if (pageBean.hasPre()) {
				%>
				<a
					href="<%=path%>/system/ChronicInfoServlet?m=reductlist&pageNo=<%=pageBean.prePage()%>">上一页</a>
				<%
					} else {
				%>
				<a href="javascript:void(0)">上一页</a>
				<%
					}
				%>
				<%
					List<Integer> linkNums = pageBean.linkLumbers();
					for (int num : linkNums) {
					if (pageBean.isCurrent(num)) {
				%>
				<span class="current"><%=num%></span>
				<%
					} else {
				%>
				<a href="<%=path%>/system/ChronicInfoServlet?m=reductlist&pageNo=<%=num%>"><%=num%></a>
				<%
					}
					}
				%>
				<%
					if (pageBean.hasNext()) {
				%>
				<a
					href="<%=path%>/system/ChronicInfoServlet?m=reductlist&pageNo=<%=pageBean.lastPage()%>">下一页</a>
				<%
					} else {
				%>
				<a href="javascript:void(0)">下一页</a>
				<%
					}
				%>
				<a
					href="<%=path%>/system/ChronicInfoServlet?m=reductlist&pageNo=<%=pageBean.getPages()%>">尾页</a>
			</div>
		</div>
	</form>

</body>
</html>
